package cn.animal.user.controller;

import cn.animal.api.clients.UserClient;
import cn.animal.common.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserClient userClient;

    @GetMapping("/test")
    public String test() {
        return "test";
    }

    @GetMapping("/test1")
    public Result<String> test1() {
        return Result.success("success");
    }

    @GetMapping("/get/test/info")
    public String getInfo() {
        return userClient.test();
    }

}
